const fs = require('fs')
const writefile = fs.createWriteStream('./message.txt')
process.stdin.on('data', (data) => {
  writefile.write(data)
  process.exit()
})